import request from '@/utils/request';

// 速率变化趋势
export function queryByteRateTrend(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkLoadAnalysis/queryByteRateTrend',
		method: 'post',
		data: data,
	});
}

// 流量变化趋势
export function queryByteTrend(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkLoadAnalysis/queryByteTrend',
		method: 'post',
		data: data,
	});
}

// 包率变化趋势
export function queryPacketRateTrend(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkLoadAnalysis/queryPacketRateTrend',
		method: 'post',
		data: data,
	});
}

// 数据包变化趋势
export function queryPacketTrend(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkLoadAnalysis/queryPacketTrend',
		method: 'post',
		data: data,
	});
}

// 业务系统流量交互概况列表
export function querySysAndSysLinkLoadList(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkLoadAnalysis/querySysAndSysLinkLoadList',
		method: 'post',
		data: data,
	});
}

// 发送网端流量交互概况列表
export function querySrcSegAndSegLinkLoadList(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkLoadAnalysis/querySrcSegAndSegLinkLoadList',
		method: 'post',
		data: data,
	});
}

// 接收网端流量交互概况列表
export function queryDstSegAndSegLinkLoadList(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkLoadAnalysis/queryDstSegAndSegLinkLoadList',
		method: 'post',
		data: data,
	});
}

// 发送网端速率变化趋势
export function querySrcSegmentRateTrend(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkLoadAnalysis/querySrcSegmentRateTrend',
		method: 'post',
		data: data,
	});
}

// 接收网端速率变化趋势
export function queryDstSegmentRateTrend(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkLoadAnalysis/queryDstSegmentRateTrend',
		method: 'post',
		data: data,
	});
}
